package com.chenyi.data.structure.hash;

import java.util.Objects;

/**
 * @author chenyi
 * @className Test
 * @date 2022/4/19 15:51
 */
public class Test {

    private String test;

    private Integer name;

    public Test(String test, Integer name) {
        this.test = test;
        this.name = name;
    }

    public Test() {

    }

    public void test() {

    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Test test1 = (Test) o;
        return Objects.equals(test, test1.test) && Objects.equals(name, test1.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(test, name);
    }

    @Override
    public String toString() {
        return "Test{" +
                "test='" + test + '\'' +
                ", name=" + name +
                '}';
    }
}
